﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="LogSearch.aspx.vb" Inherits="Map.LogSearch" %>

<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
    <link rel="stylesheet" type="text/css" href="/_nav/menu.css">
    <link rel="stylesheet" type="text/css" href="/_grid/map_grid.css">
    <link href="_form/Form.css" rel="stylesheet" type="text/css" /> 
    <link rel="stylesheet" type="text/css" href="/_controls/find/find.css">
    <script language="javascript" src="/_common/scripts/global.js"></script>
    <script language="javascript" src="/_controls/settings.aspx"></script>
    <script language="javascript" src="/_controls/util/util.js"></script>
    <script language="javascript" src="/_controls/datetime/date.js"></script>
    <script language="javascript" src="/_forms/FormBase.js"></script>

    <%--日志管理系统的公用JS--%>
    <script src="Js/LMSCommon.js" type="text/javascript"></script>
    <script type="text/javascript">
        function win_onload()
        {
            if (__today == undefined || __lastMonth_today == undefined) return;

            var dtBegin = document.getElementById("appDateBegin_text");
            var dtEnd = document.getElementById("appDatEnd_text");

            if (dtBegin == undefined || dtEnd == undefined) return;

            dtEnd.value = __today;
            dtBegin.value = __lastMonth_today;

            appQuery.clickQuery();
        }
    
        function _DoQuery()
        {
            var dtBegin = document.getElementById("appDateBegin_text");
            var dtEnd = document.getElementById("appDatEnd_text");

            if (dtBegin == undefined || dtEnd == undefined) return;

            var result = compareDate(dtBegin.value, dtEnd.value);
            if (result == 1)
            {
                alert("选择时段的截止日期不能早于开始日期！");
                return;
            }

            var url = appIframe.frameElement.url + "?xml=" + escape(appQuery.xmlurl) +"&BeginDate="+dtBegin.value +"&EndDate="+dtEnd.value+"&id="+Math.random();
            appIframe.location= url;              
        }

    </script>
</head>
<body onload="win_onload()">
    <table id="appQuery" class="appQuery" onquery="_DoQuery()" cellspacing="0" cellpadding="0" style="font-size: 9pt;padding: 10px;height:100%;width:100%" >
        <tr height="1">
            <td>
                <table style="font-size: 9pt;" height="100%" cellspacing="0" cellpadding="0" width="100%">
                    <tr height="1">
                        <td style="width: 100px;padding-left:10px;">
                            选择时段：从
                        </td>
                        <td style="width: 150px;">
                            <cnt:AppDateTimeII ID="appDateBegin" runat="server"></cnt:AppDateTimeII>
                        </td>
                        <td style="width: 50px; text-align: center;">
                            到
                        </td>
                        <td style="width: 150px;">
                            <cnt:AppDateTimeII ID="appDatEnd" runat="server" ></cnt:AppDateTimeII>
                        </td>
                        <td style="width:200px;padding-left:20px;">
                            <cnt:AppViewList ID="appViewList" runat="server" width="300" />
                        </td>
                        <td style="padding-left: 50px;">
                            <input type="button" id="btnSearch" style="width: 60px; height: 25px;" value="查找"
                                onclick="_DoQuery()" />
                            <asp:Literal ID="Content" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <iframe id="appIframe" url="LogInfoView_Grid.aspx" width="100%" height="100%" frameborder="0"     scrolling="no" />
            </td>
        </tr>
    </table>
</body>
</html>


